package com.koron.housing.apply.bean.vo;

import com.koron.common.core.util.StringUtils;
import com.koron.housing.apply.bean.po.HousingStaffInto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author jzp
 * @since 2022/2/26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "入住申请列表页信息", description = "HousingStaffIntoVO")
public class HousingStaffIntoVO extends HousingStaffInto {
    @ApiModelProperty("租户账号")
    private String account;

    @ApiModelProperty("租户姓名")
    private String name;

    @ApiModelProperty("部门id")
    private String deptId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("意向户型，housing_layout")
    private String layout;

    @ApiModelProperty("物业来源，housing_property_source")
    private String propertySource;

    @ApiModelProperty(value = "当前节点名称")
    private String currNodeName;

    @ApiModelProperty(value = "当前节点处理人名称")
    private String currNodeUser;

    @ApiModelProperty(value = "当前节点处理人id")
    private String currNodeUserId;

    @Override
    public String getTitle() {
        if (StringUtils.isEmpty(super.getTitle())) {
            return name + "_" + deptName + "_入住申请";
        }
        return super.getTitle();
    }

}
